Zenon Wallet API
  1. Transfer
Zenon Wallet API
  • AutoReceiver
    • Get the auto-receiver status
      GET
  • Plasma
    • Generate plasma by fusing QSR
      POST
    • Cancel a plasma fusion
      POST
  • Ledger
    • Get the account info by address
      GET
    • Get all received account blocks by address
      GET
    • Get all unreceived account blocks by address
      GET
    • Get plasma info by address
      GET
    • Get all fusion entries by address
      GET
  • Transfer
    • Send tokens to an address
      POST
    • Receive an account block by block hash
      POST
  • Wallet
    • Get the wallet status
      GET
    • Get all wallet accounts
      GET
    • Add wallet accounts
      POST
    • Initialize a new wallet
      POST
    • Restore an existing wallet
      POST
    • Lock the wallet
      POST
    • Unlock the wallet
      POST
  • Utilities
    • Generate plasma by fusing QSR from the plasma-bot
      POST
    • Get the fusion expiration by address from the plasma-bot
      GET
    • Validate an address
      POST
  • Users
    • Authenticate an user
      POST
  1. Transfer

Send tokens to an address

POST
/api/transfer/{account}/send
Transfer

Requires User authorization policy

Requires Wallet to be initialized and unlocked

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
account
string 
required
The account address or index to send from
Example:
z1qqjnwjjpnue8xmmpanz6csze6tcmtzzdtfsww7 or 0
Body Params application/json
address
string 
required
The beneficiary address
Example:
z1qqjnwjjpnue8xmmpanz6csze6tcmtzzdtfsww7
amount
string 
required
The amount to send
>= 1 characters
Example:
10.05
tokenStandard
string  | null 
optional
The token to send
Default:
ZNN
Example:
QSR
Example
{
  "address": "z1qqjnwjjpnue8xmmpanz6csze6tcmtzzdtfsww7",
  "amount": "10.05",
  "tokenStandard": "ZNN"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://walletapi.hypercore.one/api/transfer/z1qqjnwjjpnue8xmmpanz6csze6tcmtzzdtfsww7 or 0/send' \
--header 'Content-Type: application/json' \
--data-raw '{
    "address": "z1qqjnwjjpnue8xmmpanz6csze6tcmtzzdtfsww7",
    "amount": "10.05",
    "tokenStandard": "ZNN"
}'

Responses

🟢200Success
application/json
Body
version
integer <int64>
optional
chainIdentifier
integer <int64>
optional
blockType
integer <int64>
optional
hash
string  | null 
optional
previousHash
string  | null 
optional
height
integer <int64>
optional
momentumAcknowledged
object (JHashHeight) 
optional
hash
string  | null 
optional
height
integer <int64> | null 
optional
address
string  | null 
optional
toAddress
string  | null 
optional
amount
string  | null 
optional
tokenStandard
string  | null 
optional
fromBlockHash
string  | null 
optional
data
string  | null 
optional
fusedPlasma
integer <int64>
optional
difficulty
integer <int64>
optional
nonce
string  | null 
optional
publicKey
string  | null 
optional
signature
string  | null 
optional
Example
{
  "version": 0,
  "chainIdentifier": 0,
  "blockType": 0,
  "hash": "string",
  "previousHash": "string",
  "height": 0,
  "momentumAcknowledged": {
    "hash": "string",
    "height": 0
  },
  "address": "string",
  "toAddress": "string",
  "amount": "string",
  "tokenStandard": "string",
  "fromBlockHash": "string",
  "data": "string",
  "fusedPlasma": 0,
  "difficulty": 0,
  "nonce": "string",
  "publicKey": "string",
  "signature": "string"
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
🟠409Conflict
Modified at 2024-05-14 10:01:56
Previous
Get all fusion entries by address
Next
Receive an account block by block hash
Built with