Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Hedera Wallet Snap connects to your currently connected Metamask account by default. To learn how apps can connect to Hedera Wallet Snap using a non-metamask(external) account, refer to this documentation.
Then, depending on whether you're trying to connect to a metamask account or a non-metamask account, you can call the snap API in the following way:
To learn about what it means to stake to a node vs an account, please refer to Staking Info Documentation.
Retrieves the currently connected account the user has selected on Metamask. If it's the first time, a new snap account is created and the account info is saved in snap state.
Calls the Hedera SDK Update Account API to change the property related to staking which means it will also update setDeclineStakingReward
to true hence, the account will stop receiving staking rewards
Returns the transaction receipt as response
Some example responses:
For a hedera account id 0.0.4559
:
Note: Visit https://pulse.tuum.tech/ to activate your hedera account before you interact with the demo
To ease the integration of Hedera Wallet Snap on an application, we have created a template web application that you can run locally and check out the code in its entirety to learn how you can integrate and interact with various APIs exposed by Hedera Wallet Snap. Check out the full source code at template application github repository.
You can also check out the API reference to learn how each API works.
Hedera Wallet Snap connects to your currently connected Metamask account by default. To learn how apps can connect to Hedera Wallet Snap using a non-metamask(external) account, refer to this documentation.
Then, depending on whether you're trying to connect to a metamask account or a non-metamask account, you can call the snap API in the following way:
Note that deleting an account is an irreversible action and the user can never re-activate it again and the user is prompted with a MetaMask dialog box to confirm their choice for additional security.
Retrieves the currently connected account the user has selected on Metamask. If it's the first time, a new snap account is created and the account info is saved in snap state.
Calls the Hedera SDK Delete Account API that deletes an existing account from the Hedera Token. Before deleting an account, the existing HBAR is transferred to the account defined by transferAccountId
. NOTE: Deleting an account is an irreversible action.
Returns the transaction receipt as response.
Some example responses:
For a hedera account id 0.0.4559
:
Note: Visit https://pulse.tuum.tech/ to activate your hedera account before you interact with the demo
To ease the integration of Hedera Wallet Snap on an application, we have created a template web application that you can run locally and check out the code in its entirety to learn how you can integrate and interact with various APIs exposed by Hedera Wallet Snap. Check out the full source code at template application github repository.
You can also check out the API reference to learn how each API works.
Hedera Wallet Snap connects to your currently connected Metamask account by default. To learn how apps can connect to Hedera Wallet Snap using a non-metamask(external) account, refer to this documentation.
Then, depending on whether you're trying to connect to a metamask account or a non-metamask account, you can call the snap API in the following way:
If you don't pass in "accountId", it will retrieve account info for the currently connected account.
Note that you can also call this API to retrieve account balance for another account Id which you do not own. Think of this as fetching the account balance of an arbitrary hedera account Id.
To do that, you would just pass in accountId
like this:
This would retrieve the account balance of the account 0.0.1
from the Hedera Network Nodes.
Retrieves the currently connected account the user has selected on Metamask. If it's the first time, a new snap account is created and the account info is saved in snap state.
Calls the Get Account Balance API to get account balance.
Returns the result.
Some example responses:
For a hedera account id 0.0.4559
:
Note: Visit https://pulse.tuum.tech/ to activate your hedera account before you interact with the demo
To ease the integration of Hedera Wallet Snap on an application, we have created a template web application that you can run locally and check out the code in its entirety to learn how you can integrate and interact with various APIs exposed by Hedera Wallet Snap. Check out the full source code at template application github repository.
You can also check out the API reference to learn how each API works.
Hedera Wallet Snap connects to your currently connected Metamask account by default. To learn how apps can connect to Hedera Wallet Snap using a non-metamask(external) account, refer to this documentation.
Then, depending on whether you're trying to connect to a metamask account or a non-metamask account, you can call the snap API in the following way:
For assetType HBAR/TOKEN, you must pass the parameter spenderAccountId.
For asetType TOKEN/NFT, you must pass the parameter assetId
that is either the token id or nft id.
Note that you can also call this API to delete allowance for other tokens and nfts.
For tokens, you would need to pass in additional parameters as shown below:
For nfts, you would need to pass in additional parameters as shown below:
Retrieves the currently connected account the user has selected on Metamask. If it's the first time, a new snap account is created and the account info is saved in snap state.
Calls the Hedera SDK Delete Allowance API that allows a token owner to delete allowances. For NFTs, deleteAllTokenNftAllowances
is called to delete the allowances for the given NFT ID. For hbar and fungible tokens, approveTokenAllowance
is called with the amount of 0 to delete the allowances.
Returns the transaction receipt as response.
Some example responses:
For a hedera account id 0.0.4559
:
Note: Visit https://pulse.tuum.tech/ to activate your hedera account before you interact with the demo
To ease the integration of Hedera Wallet Snap on an application, we have created a template web application that you can run locally and check out the code in its entirety to learn how you can integrate and interact with various APIs exposed by Hedera Wallet Snap. Check out the full source code at template application github repository.
You can also check out the API reference to learn how each API works.
Hedera Wallet Snap connects to your currently connected Metamask account by default. To learn how apps can connect to Hedera Wallet Snap using a non-metamask(external) account, refer to this documentation.
Then, depending on whether you're trying to connect to a metamask account or a non-metamask account, you can call the snap API in the following way:
For assetType TOKEN/NFT, you will need to pass in additional parameter assetDetail
that contains the following:
Note that you can also call this API to approve allowance for other tokens and nfts.
For tokens, you would need to pass in additional parameters as shown below:
For nfts, you would need to pass in additional parameters as shown below:
Retrieves the currently connected account the user has selected on Metamask. If it's the first time, a new snap account is created and the account info is saved in snap state.
Calls the Hedera SDK Approve Allowance API that allows a token owner to delegate a token spender to spend the specified token amount on behalf of the token owner. The owner can provide an allowance for HBAR, fungible(TOKEN) and non-fungible(NFT) tokens.
Returns the transaction receipt as response.
Some example responses:
For a hedera account id 0.0.4559
:
Note: Visit https://pulse.tuum.tech/ to activate your hedera account before you interact with the demo
To ease the integration of Hedera Wallet Snap on an application, we have created a template web application that you can run locally and check out the code in its entirety to learn how you can integrate and interact with various APIs exposed by Hedera Wallet Snap. Check out the full source code at template application github repository.
You can also check out the API reference to learn how each API works.
Then, depending on whether you're trying to connect to a metamask account or a non-metamask account, you can call the snap API in the following way:
You must pass in either "nodeId" or "accountId" but not both.
Note that you can also call this API to stake to another Account Id instead of a Node.
To do that, you would just pass in accountId
like this:
This would stake to the account Id 0.0.1
.
This would make it so that you stop getting staking rewards.
Returns the transaction receipt as response
Some example responses:
For a hedera account id 0.0.4559
:
Hedera Wallet Snap connects to your currently connected Metamask account by default. To learn how apps can connect to Hedera Wallet Snap using a non-metamask(external) account, refer to this .
To learn about what it means to stake to a node vs an account, please refer to .
Note that you can also call this API to unstake your Hbar from a node or an accountId. This basically changes the account property for .
To do that, you would just pass in null
to both nodeId
and accountId
Retrieves the currently connected account the user has selected on Metamask. If it's the first time, a new is created and the account info is saved in snap state.
Calls the to change the property related to staking.
Note: Visit to activate your hedera account before you interact with the demo
If you're getting any errors with the live demo, make sure you go through the section to learn about what you may be missing. You need to install in your browser for the live demo to work.
To ease the integration of Hedera Wallet Snap on an application, we have created a template web application that you can run locally and check out the code in its entirety to learn how you can integrate and interact with various APIs exposed by Hedera Wallet Snap. Check out the full source code at .
You can also check out the to learn how each API works.
Hedera Wallet Snap connects to your currently connected Metamask account by default. To learn how apps can connect to Hedera Wallet Snap using a non-metamask(external) account, refer to this documentation.
Then, depending on whether you're trying to connect to a metamask account or a non-metamask account, you can call the snap API in the following way:
If you don't pass in "mirrorNodeUrl", the snap will query the Hedera Ledger node to retrieve the account information and this may have some costs associated with the query. In addition, the token balance would also not be retrieved as that can only be retrieved from querying a mirror node.
If you want to retrieve the complete account data and want to do it for free, be sure to pass in "mirrorNodeUrl" in your parameter.
If you don't pass in "accountId", it will retrieve account info for the currently connected account.
Note that you can also call this API to retrieve account info for another account Id which you do not own. Think of this as fetching the account info of an arbitrary hedera account Id.
To do that, you would just pass in accountId
like this:
This would retrieve the account info of the account 0.0.1
from the Hedera Mirror Nodes.
Retrieves the currently connected account the user has selected on Metamask. If it's the first time, a new snap account is created and the account info is saved in snap state.
Calls the Mirror Node Account Info REST API to get account info from the Hedera Mirror Node if mirrorNodeUrl
is passed. If not, it calls the Get Account Info API of the Hedera SDK
Returns the result.
Some example responses:
For a hedera account id 0.0.4235873
:
Note: Visit https://pulse.tuum.tech/ to activate your hedera account before you interact with the demo
To ease the integration of Hedera Wallet Snap on an application, we have created a template web application that you can run locally and check out the code in its entirety to learn how you can integrate and interact with various APIs exposed by Hedera Wallet Snap. Check out the full source code at template application github repository.
You can also check out the API reference to learn how each API works.