Grant authority
post/v1/tokens/grant_authority
Body
actionstring · enumRequiredPossible values:
The action of the transaction: Grant or Revoke.
authority_addressstringRequiredExample:
The authority address to grant or revoke.
0x9E1E9688A44D058fF181Ed64ddFAFbBE5CC742Abauthority_typestring · enumRequiredPossible values:
The authority type of the transaction: Mint, MintTokens, Pause, Burn, Blacklist, UpdateMetadata.
chain_idinteger · int64RequiredExample:
The chain id of the transaction.
1212101nonceinteger · int64RequiredExample:
The nonce of the transaction.
0tokenstringRequiredExample:
The token address to operate.
0x6ADE9688A44D058fF181Ed64ddFAFbBE5CC742Acvalueone ofRequiredDefault:
0stringOptionalExample:
The allowance value of tokens to grant, only works for MintTokens
type.
1500000000Responses
200Success
application/json
Represents a transaction hash returned by the API.
hashstringRequiredExample:
0xf55f9525be94633b56f954d3252d52b8ef42f5fd5f9491b243708471c15cc40c400
Client error
application/json
404
Resource not found
application/json
408
Request timeout
application/json
422
Business logic error
application/json
500
Internal server error
application/json
post/v1/tokens/grant_authority
POST /v1/tokens/grant_authority HTTP/1.1
Host: api.testnet.1money.network
Content-Type: application/json
Accept: */*
Content-Length: 401
{
"action": "Grant",
"authority_address": "0x9E1E9688A44D058fF181Ed64ddFAFbBE5CC742Ab",
"authority_type": "MasterMintBurn",
"chain_id": 1212101,
"nonce": 0,
"token": "0x6ADE9688A44D058fF181Ed64ddFAFbBE5CC742Ac",
"value": "0",
"signature": {
"r": "72956732934625920503481762689501378577921804342307439094906376029324416116949",
"s": "29902520081700531224291681396692026253288382272435451874524203378285409371412",
"v": "1"
}
}{
"hash": "0xf55f9525be94633b56f954d3252d52b8ef42f5fd5f9491b243708471c15cc40c"
}Last updated