Appearance
@swapped/connect-sdk / core / SendWalletTransactionRequest
Type Alias: SendWalletTransactionRequest
SendWalletTransactionRequest =
object
Defined in: src/types/wallets.types.ts:197
Properties
amount
amount:
string
Defined in: src/types/wallets.types.ts:202
Human-readable token amount. The host converts to chain base units.
chainId
chainId:
ChainId
Defined in: src/types/wallets.types.ts:199
clientTxId?
optionalclientTxId?:string
Defined in: src/types/wallets.types.ts:209
Frontend correlation id for status events. Generated by the SDK when omitted - see onClientTxId.
decimals?
optionaldecimals?:number
Defined in: src/types/wallets.types.ts:214
forcePopup?
optionalforcePopup?:boolean
Defined in: src/types/wallets.types.ts:221
Always run this send in the Swapped popup.
isSponsored?
optionalisSponsored?:boolean
Defined in: src/types/wallets.types.ts:217
Widget-equivalent gasless decision. Host honors this when set.
onClientTxId?
optionalonClientTxId?: (clientTxId) =>void
Defined in: src/types/wallets.types.ts:211
Called with the id that will be used (provided or generated).
Parameters
clientTxId
string
Returns
void
onStatus?
optionalonStatus?: (event) =>void
Defined in: src/types/wallets.types.ts:219
Per-call host send progress. Not published as a client event.
Parameters
event
Returns
void
popupIfUnavailable?
optionalpopupIfUnavailable?:boolean
Defined in: src/types/wallets.types.ts:225
If the iframe cannot see this wallet, open the popup instead of failing.
sessionId?
optionalsessionId?:string
Defined in: src/types/wallets.types.ts:213
Swapped session id. Defaults to the active client session.
symbol?
optionalsymbol?:string
Defined in: src/types/wallets.types.ts:215
to
to:
string
Defined in: src/types/wallets.types.ts:200
tokenAddress?
optionaltokenAddress?:string
Defined in: src/types/wallets.types.ts:204
EVM only: transfer this ERC-20 instead of native value.
walletId
walletId:
WalletId
Defined in: src/types/wallets.types.ts:198