Delegate ressources
Delegation is used to delegate resources, such as Bandwidth and Energy, to other addresses. Delegating balance is a requirement for voting for Super Representatives and obtaining rewards. To ensure proper delegation of balance, it is important to follow two rules. First, the delegated balance needs to be frozen before delegation can occur. Second, the receiver address should not be the same as the owner address. These rules help maintain the integrity and security of the delegation process.
Headers
Specify "testnet" for test network or leave empty for main network. Defaults to "mainnet" if not provided.
Bearer token for authorization. Required for authenticated endpoints.
The MIME type of the request body.
Request body
Example request
{
"address": "TVQzpd28yXB1ETsf5NMZMHjvvAE3LXEDAK",
"amount": 100,
"receiver": "TVQzpd28yXB1ETsf5NMZMHjvvAE3LXEDAK",
"resource": "ENERGY",
"password": "your_password",
"privatekey": "708c419d1b9ae123047f70787a503b6ba51e048a27966e0220cc5feXXXXXXXXX"
}Response
Delegated
Example response
{
"status": 200,
"ok": true,
"message": "Delegated",
"data": {
"result": true,
"txid": "08a9de94df7ff9e0983a91013921f4ff170c42d9b6b6f034d54228502cfe3809"
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.