Skip to main content

Token

createToken

Executes create token over an wallet.

Params

  • wallet : String - Issuer wallet Address
  • passphrase : String - Issuer wallet Password
  • function : Boolean - Tokens with additional features
  • name : String - Token Name.
  • symbol : String - Token Symbol.
  • summary : String - Token Summary.
  • totalAmount : Integer - Token Issue Amount.
  • decimal : Integer - Token decimal(Max. 18).

Result

Example

Request
curl -X POST --data '{"jsonrpc":"2.0","method":"createToken","params":{"wallet":"HN51F32BB5917012F193D79EF313D84F3E4594F046A1D37E","passphrase":"SenderPassword","function":"true","name":"Token Name","symbol":"TSYM","summary":"Token Summary","totalAmount":"100000000","decimal":"4"},"id":123456}' http://localhost:8121
Response
{"result":{"token":"HNE5078262EF981E85B5B91B1CE5D405E4C7B7A0DB392E1B","block":0,"time":1644210995,"opblock":0,"maturation":null,"optype":6,"nopsp":369748,"oprice":"3076923076230769","signer_account":HN51F32BB5917012F193D79EF313D84F3E4594F046A1D37E,"n_operation":2,"optxt":"Create Token Name:'Token Name',Symbol:'TSYM'","ophash":"000000000B00000002000000B482C5A9DD05FD7732E4C79AA34C7A1D6363EC67"},"id":"123456","jsonrpc":"2.0"}

adminToken

Executes a token admin operation.

Params

  • sender : String - Owner wallet Address
  • passphrase : String - Owner Wallet Password
  • token : String - Token Address
  • method : String - (transferEnabled,transferWalletEnabled,lockWalletVolume,burnWalletVolume,mintWalletVolume,ownershipWallet)
  • receiver : String - Applied wallet Address (transferWalletEnabled,lockWalletVolume,burnWalletVolume,mintWalletVolume,ownershipWallet)
  • amount : String - Applied Token (lockWalletVolume,burnWalletVolume,mintWalletVolume)
  • select : Boolean - Applied Change (transferEnabled,transferWalletEnabled)

Result

Example

Request
curl -X POST --data '{"jsonrpc":"2.0","method":"adminToken","params":{"sender":"HN51F32BB5917012F193D79EF313D84F3E4594F046A1D37E","passphrase":"YourPassword","token":"HNC919715A05A52AF1C88D93FAFE67D24A6BC044844A7EA9","method":"transferEnabled","select":"false"},"id":123456}' http://localhost:8121
Response
{"result":{"block":0,"time":1644216401,"opblock":0,"maturation":null,"optype":7,"subtype":0,"nopsp":162,"niopsp":0,"oprice":"3076923076230769","ioprice":"3076923076230769","signer_account":"HN51F32BB5917012F193D79EF313D84F3E4594F046A1D37E","n_operation":2,"amount":"0","senders":[{"account":"HN51F32BB5917012F193D79EF313D84F3E4594F046A1D37E","payload":"","payload_type":1}],"receivers":[{"account":"HN55A334AAA0F309761BB626C33DF83F3586F2E0FE27B90C"}],"optxt":"Token transferEnabled","ophash":"000000000B000000020000005DED9E7F35F28117E58F241C09FFD8267ADEF8FF"},"id":"123456","jsonrpc":"2.0"}

holderToken

Returns token holder infomation.

Params

  • wallet : String - Token Address

Result

  • Returns a JSON Object with a "Token Holder Object"
  • transfer : Boolean - Token transfer availability
  • advanced : Boolean - Availability of function
  • totalHolder : Integer - Number of token holders

Example

Request
curl -X POST --data '{"jsonrpc":"2.0","method":"holderToken","wallet":"HNE5078262EF981E85B5B91B1CE5D405E4C7B7A0DB392E1B","id":123456}' http://localhost:8121
Response
{"result":{"transfer":true,"advanced":false,"totalHolder":1,"holder":[{"transfer":true,"balance":"1000000000000","wallet":"HN51F32BB5917012F193D79EF313D84F3E4594F046A1D37E","volumeLock":"0","volumeTimeLock":"0"}]},"id":"123456","jsonrpc":"2.0"}

infoToken

Returns creation token infomation.

Params

  • wallet : String - Token Address

Result

Example

Request
curl -X POST --data '{"jsonrpc":"2.0","method":"infoToken","wallet":"HNE5078262EF981E85B5B91B1CE5D405E4C7B7A0DB392E1B","id":123456}' http://localhost:8121
Response
{"result":{"totalHolder":1,"advanced":false,"symbol":"'TSYM'","name":"'Token Name'","summary":"'Token Summary'","issuer":"HN51F32BB5917012F193D79EF313D84F3E4594F046A1D37E","owner":"HN51F32BB5917012F193D79EF313D84F3E4594F046A1D37E","decimal":4,"totalAmount":"100000000.0"},"id":"123456","jsonrpc":"2.0"}

sendToken

Executes a token transaction.

Params

  • sender : String - Sender wallet Address
  • passphrase : String - Sender Wallet Password
  • receiver : String - Receiver wallet Address
  • amount : String - Coins to be transferred (Token)
  • token : String - Token Address
  • payload : HexString - Payload "item" that will be included in this operation (Option)

Result

Example

Request
curl -X POST --data '{"jsonrpc":"2.0","method":"sendToken","params":{"sender":"HN51F32BB5917012F193D79EF313D84F3E4594F046A1D37E","passphrase":"SenderPassword","receiver":"HN5610C66C78B38E8986FECFB41759DEB757CF401C890593","amount":"100","token":"HNE5078262EF981E85B5B91B1CE5D405E4C7B7A0DB392E1B"},"id":123456}' http://localhost:8121
Response
{"result":{"block":0,"time":1644215258,"opblock":0,"maturation":null,"optype":7,"subtype":0,"nopsp":162,"niopsp":0,"oprice":"3076923076230769","ioprice":"3076923076230769","signer_account":"HN51F32BB5917012F193D79EF313D84F3E4594F046A1D37E","n_operation":3,"amount":"1000000","senders":[{"account":"HN51F32BB5917012F193D79EF313D84F3E4594F046A1D37E","payload":"","payload_type":0}],"receivers":[{"account":"HN5610C66C78B38E8986FECFB41759DEB757CF401C890593"}],"optxt":"Token Transfer","ophash":"000000000B0000000300000035A537A83631E1AF708A1ABCFD3D46313F521FEF"},"id":"123456","jsonrpc":"2.0"}