Appearance
@swapped/connect-sdk / core / SendWalletTransactionRequest
Type Alias: SendWalletTransactionRequest
SendWalletTransactionRequest =
object
Defined in: src/types/wallets.types.ts:174
Properties
amount
amount:
string
Defined in: src/types/wallets.types.ts:179
Human-readable token amount. The host converts to chain base units.
chainId
chainId:
ChainId
Defined in: src/types/wallets.types.ts:176
clientTxId?
optionalclientTxId?:string
Defined in: src/types/wallets.types.ts:186
Frontend correlation id for status events. Generated by the SDK when omitted — see onClientTxId.
decimals?
optionaldecimals?:number
Defined in: src/types/wallets.types.ts:191
forcePopup?
optionalforcePopup?:boolean
Defined in: src/types/wallets.types.ts:198
Always run this send in the Swapped popup.
isSponsored?
optionalisSponsored?:boolean
Defined in: src/types/wallets.types.ts:194
Widget-equivalent gasless decision. Host honors this when set.
onClientTxId?
optionalonClientTxId?: (clientTxId) =>void
Defined in: src/types/wallets.types.ts:188
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:196
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:202
If the iframe cannot see this wallet, open the popup instead of failing.
sessionId?
optionalsessionId?:string
Defined in: src/types/wallets.types.ts:190
Swapped session id. Defaults to the active client session.
symbol?
optionalsymbol?:string
Defined in: src/types/wallets.types.ts:192
to
to:
string
Defined in: src/types/wallets.types.ts:177
tokenAddress?
optionaltokenAddress?:string
Defined in: src/types/wallets.types.ts:181
EVM only: transfer this ERC-20 instead of native value.
walletId
walletId:
WalletId
Defined in: src/types/wallets.types.ts:175