Skip to content

Commit

Permalink
feat(PSDK-782): allow users to send sponsored transactions immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
0xRAG committed Jan 9, 2025
1 parent 343e123 commit c264e34
Show file tree
Hide file tree
Showing 6 changed files with 443 additions and 3 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,17 @@ let transfer = await wallet.createTransfer({ amount: 0.00001, assetId: Coinbase.
transfer = await transfer.wait();
```

By default, gasless transfers are batched with other transfers, and might take longer to submit. If you want to opt out of batching, you can set the `skipBatching` option to `true`, which will submit the transaction immediately.
```typescript
let transfer = await wallet.createTransfer({
amount: 0.00001,
assetId: Coinbase.assets.Usdc,
destination: anotherWallet,
gasless: true,
skipBatching: true
});
transfer = await transfer.wait();
```

### Trading Funds

Expand Down
Loading

0 comments on commit c264e34

Please sign in to comment.