Type Parameter |
---|
C extends Chain |
new Wallet<C
>(args
,apiClient
):Wallet
<C
>
Parameter | Type |
---|---|
args | WalletContructorType <C > |
apiClient | WalletsApiClient |
Wallet
<C
>
Property | Type | Defined in |
---|---|---|
address | string | packages/wallets/src/wallets/wallet.ts:41 |
chain | C | packages/wallets/src/wallets/wallet.ts:40 |
owner? | string | packages/wallets/src/wallets/wallet.ts:42 |
signer | Signer <keyof SignResultMap > | packages/wallets/src/wallets/wallet.ts:43 |
addDelegatedSigner(Add a delegated signer to the walletsigner
):Promise
<void
>
Parameter | Type | Description |
---|---|---|
signer | object | The signer |
signer.signer | string | - |
Promise
<void
>
The delegated signer
balances(Get the wallet balances - always includes USDC and native token (ETH/SOL)tokens
?,chains
?):Promise
<Balances
>
Parameter | Type | Description |
---|---|---|
tokens ? | string [] | Additional tokens to request (optional: native token and usdc are always included) |
chains ? | Chain [] | The chains (optional) |
Promise
<Balances
>
The balances returns nativeToken, usdc, tokens
delegatedSigners():Promise
<DelegatedSigner
[]>
Promise
<DelegatedSigner
[]>
experimental_activity():Promise
<WalletsV1Alpha2ActivityResponseDto
>
Experimental
Get the wallet activity
Promise
<WalletsV1Alpha2ActivityResponseDto
>
The activity
This API is experimental and may change in the future
experimental_nfts(params
):Promise
<GetNftsResponse
>
Experimental
Get the wallet NFTs
Parameter | Type | Description |
---|---|---|
params | object | The parameters |
params.page | number | The page number |
params.perPage | number | The number of NFTs per page |
Promise
<GetNftsResponse
>
The NFTs
This API is experimental and may change in the future
experimental_transactions():Get the wallet transactionsPromise
<GetTransactionsResponse
>
Promise
<GetTransactionsResponse
>
The transactions
send<Send a token to a wallet or user locatorT
>(to
,token
,amount
,options
?):Promise
<Transaction
<T
extendsobject
?true
:false
>>
Type Parameter | Default type |
---|---|
T extends undefined | TransactionInputOptions | undefined |
Parameter | Type | Description |
---|---|---|
to | string | UserLocator | The recipient (address or user locator) |
token | string | The token (address or currency symbol) |
amount | string | The amount to send (decimal units) |
options ? | T | The options for the transaction |
Promise
<Transaction
<T
extends object
? true
: false
>>
The transaction