Native Coin
JavaScript Native Coin Functions
Get balance
Description
Returns the current balance of blockchain native coins in the user's wallet for multiple blockchains
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
blockchainIds | String[] | defaultBlockchainIds | Blockchain ids |
Return type
Usage Example
Response Example
Get transactions
Description
Returns a list of blockchain native coin transactions for multiple blockchains
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
blockchainIds | String[] | defaultBlockchainIds | Blockchain ids |
Return type
Usage Example
Response Example
Send to user
Description
Sends native currency to another user on the platform by its user ID. The user will get a Sign Transaction widget to approve the transaction.
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
blockchainId | String | ✔️ | Blockchain | |
value | String | ✔️ | value of crypto | |
userId | String | ✔️ | Id of user to send crypto to |
Return type
Usage Example
Send to wallet
Description
Sends native currency to another wallet by its wallet address. The user will get a Sign Transaction widget to approve the transaction.
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
blockchainId | String | ✔️ | Blockchain | |
value | String | ✔️ | value of crypto | |
walletAddress | String | ✔️ | Address of wallet to send crypto to |
Return type
Usage Example
Last updated