JSON-RPC is a protocol where the client sends a request message in JSON format to the node, which processes it and returns the result in a JSON format response message.
It stands for Remote Procedure Call (RPC) protocol, which is a method for communication.
Locus Chain nodes provide a JSON-RPC API. Through nodes run by individuals or provided by some public services, users can easily query information from the blockchain network.
You can receive the result with a single call.
If the parameter includes 'Sig', this is an RPC for creating a Tx.
Call the same RPC twice.
Proceed in 4 steps as follows.
- [STEP1: 1st Call] Receive Tx and Hash from the node.
- [STEP2: Tx Verify] Verify the received Tx with the VerifyTx function of the Locus Library.
- [STEP3: Sign] If there is no problem with the Tx, sign it through the Locus Library or Wallet.
- [STEP4: 2nd Call] Add the signature to the parameter of the first call and make the second call to create the Tx.
{
"jsonrpc": "2.0",
"method": "locus_getAccountDetail",
"params": [{ "account": "D4YLP5B3NC3RWVXYDWFPCT6IG2ASCVP32ANLOAD73I" }],
"id": 1
}
The basic response value has the following format.
The result value changes depending on the called Function.
Success
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
Failure
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": 1,
"message": ""
}
}
It can be used to check if the node responds correctly to RPC calls.
The current time is added to the input value and returned in the response.
| Key | Type | Description |
|---|
| str | string | String |
| Key | Type | Description |
|---|
| - | string | Input string + current time |
To receive current synchronization status of the node.
[None]
| Key | Type | Description |
|---|
| syncState | string | NODE_STATE_IN_INIT NODE_STATE_IN_SYNC NODE_STATE_IN_RESYNC NODE_STATE_SYNC_COMPLETE NODE_STATE_STABLE Unknown NodeState |
Retrieve the address of the Genesis account.
[None]
| Key | Type | Description |
|---|
| genesis | base32 | Genesis account address |
Register the account on the Locus Chain network.
| Key | Type | Description |
|---|
| account | base32 | Target account address |
| sender | base32 | Account that sent the coin |
| index | int | Height of the Tx that sent coin |
| args | []string | Arguments |
| pk | base32 | Normal public key |
| keySign | base32 | Key signature |
| mpk | base32 | Master public key |
| sign | base64 | Signature |
| signedHeight | int | signedHeight from the 1st response |
| Key | Type | Description |
|---|
| hash | base64 | Tx Hash |
| tx | object | Created Tx |
| success | bool | Success |
| signedHeight | int | Signed tx height |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
Set the specified account as host for the node.
The specified account should have no guests, and the node must be an empty node without a host.
| Key | Type | Description |
|---|
| account | base32 | Account to be the host |
| sign | base64 | Signature |
| signedHeight | int | signedHeight from the 1st response |
| Key | Type | Description |
|---|
| hash | base64 | Tx Hash |
| tx | object | Created Tx |
| success | bool | Success |
| signedHeight | int | Signed tx height |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
Set the specified account as guest for the node.
The specified account should have no guests, and the node must have an existing host.
| Key | Type | Description |
|---|
| account | base32 | Account to be the guest |
| sign | base64 | Signature |
| signedHeight | int | signedHeight from the 1st response |
| Key | Type | Description |
|---|
| hash | base64 | Tx Hash |
| tx | object | Created Tx |
| success | bool | Success |
| signedHeight | int | Signed tx height |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
Change the account's normal key.
| Key | Type | Description |
|---|
| account | base32 | Account to change key |
| masterPkey | base32 | Master public key |
| newNormalPkey | base32 | New Normal public key |
| signByMasterKey | base64 | Value signed of New Normal public key with Master public key |
| sign | base64 | Signature |
| signedHeight | int | Signed height |
| Key | Type | Description |
|---|
| hash | base64 | Tx Hash |
| tx | object | Created Tx |
| success | bool | Success |
| signedHeight | int | Signed tx height |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
Send coins to another account.
| Key | Type | Description |
|---|
| from | base32 | Sender Account |
| to | base32 | Receiver Account |
| amount | string | Amount to send |
| sign | base64 | Signature |
| signedHeight | int | signedHeight from the 1st response |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
| Key | Type | Description |
|---|
| hash | base64 | Tx Hash |
| tx | object | Created Tx |
| success | bool | Success |
| signedHeight | int | Signed tx height |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
Retrieve the Tx information for a specific Height of the account.
| Key | Type | Description |
|---|
| account | base32 | Account |
| height | int | Height of Account |
| Key | Type | Description |
|---|
| tx | string | Tx Information |
locus_getAccountHistory
Retrieve the list of Tx for the account.
| Key | Type | Description |
|---|
| account | base32 | Account |
| height | int | Start Height to retrieve If Height is -1, start from the latest Tx. |
| count | int | Number of Tx to retrieve (number of previous Tx from the starting position). |
| Key | Type | Description |
|---|
| txs | []string | Tx string list |
Retrieve detailed information of the account.
| Key | Type | Description |
|---|
| account | base32 | Account |
| Key | Type | Description |
|---|
| identity | string | Host : Host account of the node Guest : Guest account of the node Neighbor : Neighboring accounts of the shard to which the node belongs. This is the state at the time of the query and may be inaccurate depending on the synchronization status. no identity : None of above |
| fromNoAlive | bool | This flag becomes true if OpenAccount is done but not yet included in consensus. |
| balance | string | Locus Coin Balance |
| unactBalance | string | Balance unavailable because it is not activated yet |
| representative | base32 | Delegated Account (Host Account) |
| grant | uint64 | Grant possessed |
| publicKey | base32 | Account's Normal public key |
| txChainHeight | int | Account's Height |
| txLink | string | Last Tx link |
Retrieve the list of World Round States (WRS).
| Key | Type | Description |
|---|
| round | int | Start Round to retrieve |
| count | int | Number to retrieve (previous ones from start), Max 500. |
| Key | Type | Description |
|---|
| nextRoundList | []int | WRS list |
Retrieve detailed information of the World Round State (WRS).
| Key | Type | Description |
|---|
| round | int | Round to retrieve |
| Key | Type | Description |
|---|
| nextRound | int | Round |
| addShardRound | int | 0 : No shard splitting planned. 1 : Sharding is required, but the timing has not been determined yet. 2 above: Sharding is planned for the upcoming round. |
| rootAcctHash | string | |
| worldInfoHash | string | |
| currentHash | string | |
| prevLink | string | |
| prevNextRound | int | |
| sigHash | string | The hash value of the signature information below. The signature information below may be pruned. |
| validatorsWeight | int | Total sum of the Validator's weights |
| validators | []types.Validator | {Validator's Addr, Weight, Sign} |
types.Validator
| Key | Type | Description |
|---|
| addr | base32 | Validator Address |
| weight | uint16 | Weight |
| sign | string | Signature |
Retrieve the list of Tx for the account that has not been activated yet.
| Key | Type | Description |
|---|
| account | base32 | Account |
| Key | Type | Description |
|---|
| timeOutTxs | []types.ListTx | List of Tx that timed out due to the first target not being activated. |
| txs | []types.ListTx | List of Tx with completed consensus on the sender's side. |
| unconfirmedTxs | []types.ListTx | List of Tx awaiting consensus on the sender's side. |
| pendingTxs | []types.ListTx | List of Tx proposed for less than 10 seconds. |
| unspreadTxs | []types.ListTx | Unspread Tx list. |
| conflictedTxs | []types.ListTx | List of conflicting Tx. |
| contractResults | types.ContractResults | Contract results |
types.ListTx
| Key | Type | Description |
|---|
| sender | base32 | Sender Account |
| index | int | Index |
| tx | string | Tx Content |
| vtx | object | Detailed Tx Info |
types.ContractResults
| Key | Type | Description |
|---|
| pending | []types.ListTx | List of Tx in Pending state |
| conflicting | []types.ListTx | List of conflicting Tx |
Retrieve the account's Mont (MOnitoring seNT) list.
Only possible for the node's host/guest accounts.
| Key | Type | Description |
|---|
| account | base32 | Account |
| Key | Type | Description |
|---|
| proofedTxs | []types.MontTx | List of Tx with completed consensus on the sender's side. |
| pendingTxs | []types.MontTx | List of Tx that have only been proposed. |
types.MontTx
| Key | Type | Description |
|---|
| index | int | Index |
| tx | string | Tx Content |
Generate System Token.
One system token can be created per account.
| Key | Type | Description |
|---|
| account | base32 | Account to create token |
| tokenBalance | string | Quantity of tokens to Generate |
| sign | base64 | Signature |
| signedHeight | int | signedHeight from the 1st response |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
| Key | Type | Description |
|---|
| hash | base64 | Tx Hash |
| tx | object | Created Tx |
| success | bool | Success |
| signedHeight | int | Signed tx height |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
Send tokens to another account.
| Key | Type | Description |
|---|
| from | base32 | Sender Account |
| to | base32 | Receiver Account |
| amount | string | Amount to send |
| tokenAmounts | []types.TokenAmount | List of tokens to send |
| sign | base64 | Signature |
| signedHeight | int | signedHeight from the 1st response |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
| source | types.Source | Source |
types.TokenAmount
| Key | Type | Description |
|---|
| tokenId | string | Token ID |
| amountToken | string | Token Amount |
types.Source
| Key | Type | Description |
|---|
| owner | string | Owner |
| height | int | Height |
| Key | Type | Description |
|---|
| hash | base64 | Tx Hash |
| tx | object | Created Tx |
| success | bool | Success |
| signedHeight | int | Signed tx height |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
Retrieve the list of tokens owned by the account and their balances.
| Key | Type | Description |
|---|
| account | base32 | Account to Retrieve tokens |
| Key | Type | Description |
|---|
| tokenList | map[base32]string | {"TokenID": Balance} |
Check if the account has created a system token, and if so, retrieve the token ID.
| Key | Type | Description |
|---|
| account | base32 | Account |
| Key | Type | Description |
|---|
| having | bool | Whether system token exists |
| tokenId | string | If having is true, return the System Token ID. |
locus_postData
Post the data.
| Key | Type | Description |
|---|
| account | base32 | Account |
| label | int | Transactions with the same label are linked within the chain. When verifying the proof for a given Tx, this is used to check if there is a more recent Tx with the same label. |
| data | base64 | Data to be posted |
| sign | base64 | Signature |
| signedHeight | int | signedHeight from the 1st response |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
| Key | Type | Description |
|---|
| hash | base64 | Tx Hash |
| tx | object | Created Tx |
| success | bool | Success |
| signedHeight | int | Signed tx height |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
Retrieve the list of Tx and Proof together.
| Key | Type | Description |
|---|
| account | base32 | Account |
| baseHeight | int | Start Height |
| count | uint | Number to retrieve (previous ones from start position). |
| Key | Type | Description |
|---|
| account | base32 | Account |
| txs | []string | Tx string list |
| proof | string | Merkle Proof of the requested Tx list |
| checkRoundP1 | int | Round + 1 in which the Proof was generated |
Verify the proof of the Tx list.
| Key | Type | Description |
|---|
| account | base32 | Account |
| txs | []string | List of Tx to verify |
| proof | MerkleProof | Merkle Proof of the list of Tx to verify |
| checkRoundP1 | int | Round + 1 in which the Proof was generated |
| Key | Type | Description |
|---|
| - | bool | Verification Result |
Generate Proof that specific label's TxPostData is the latest.
| Key | Type | Description |
|---|
| account | base32 | Account |
| height | int | Height of the first TxPostData to generate Proof. |
| Key | Type | Description |
|---|
| account | base32 | Account |
| latestProof | string | Proof that Tx is included in the latest StoredDataHash. |
Verify the Proof generated by locus_generateLatestStoredDataProof RPC.
| Key | Type | Description |
|---|
| account | base32 | Account to generate Proof of Tx list. |
| latestProof | string | Proof that Tx is included in the latest StoredDataHash. |
| Key | Type | Description |
|---|
| - | bool | Verification Result |
Lock the Stake.
| Key | Type | Description |
|---|
| account | base32 | Account |
| vmeId | base32 | VME ID |
| lockAmount | uint32 | Lock Amount (1 UnitStakeLock = 100 Locus) |
| sign | base64 | Signature |
| signedHeight | int | signedHeight from the 1st response |
| Key | Type | Description |
|---|
| hash | base64 | Tx Hash |
| tx | object | Created Tx |
| success | bool | Success |
| signedHeight | int | Signed tx height |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
Unlock the Stake.
| Key | Type | Description |
|---|
| account | base32 | Account |
| vmeId | base32 | VME ID |
| unlockAmount | uint32 | Unlock Amount (1 UnitStakeLock = 100 Locus) |
| sign | base64 | Signature |
| signedHeight | int | signedHeight from the 1st response |
| Key | Type | Description |
|---|
| hash | base64 | Tx Hash |
| tx | object | Created Tx |
| success | bool | Success |
| signedHeight | int | Signed tx height |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
Deploy the Core Script.
| Key | Type | Description |
|---|
| provider | base32 | Account to deploy the script |
| target | base32 | The account that will activate the coins or tokens sent by the provider by executing the Core script within the time lock. |
| targetAfterTimeLock | base32 | The account that will automatically activate the coins or tokens sent by the provider after the time lock. |
| timeLock | int | The round duration for the time lock, with the current max = 30 and min = 3. |
| args | []hex | Arguments to be used when the target executes the provider's script (ScriptSig), with a maximum of 4 arguments allowed. |
| scriptProvide | hex | The provider's script to be executed by the target, with the current MaxSize = 32 bytes. |
| scriptAccept | hex | The script to be executed by the target, with the current MaxSize = 32 bytes. |
| amount | string | The coin amount that can be activated if the target successfully executes the Core script. |
| tokenAmounts | []types.TokenAmount | The token amounts that can be activated if the target successfully executes the Core script. |
types.TokenAmount
| Key | Type | Description |
|---|
| tokenId | string | Token ID |
| amountToken | string | Token Amount |
| sign | base64 | Signature |
| signedHeight | int | signedHeight from the 1st response |
| Key | Type | Description |
|---|
| hash | base64 | Tx Hash |
| tx | object | Created Tx |
| success | bool | Success |
| signedHeight | int | Signed tx height |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
Execute Core Script.
| Key | Type | Description |
|---|
| acceptor | base32 | The account that will activate the Core script specified as the target in TxProvideScript. Activation is only possible within the time lock. |
| provider | base32 | The account that deployed the TxProvideScript. |
| index | int | Height of LeadTx(TxProvideScript) |
| args | []hex | Arguments to be used when the target executes the target's script (ScriptSig), with a maximum of 4 arguments allowed. |
| sign | base64 | Signature |
| signedHeight | int | signedHeight from the 1st response |
| Key | Type | Description |
|---|
| hash | base64 | Tx Hash |
| tx | object | Created Tx |
| success | bool | Success |
| signedHeight | int | Signed tx height |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
Retrieve the full address with key address.
| Key | Type | Description |
|---|
| addr | base32 | Key Address |
| Key | Type | Description |
|---|
| addr | base32 | Full Address |
Get account block height list to download.
| Key | Type | Description |
|---|
| account | base32 | Account |
| heightChunks | []types.HeightChunk | Height Chunk List |
types.HeightChunk
| Key | Type | Description |
|---|
| bottom | int | Bottom |
| top | int | Top |
| Key | Type | Description |
|---|
| heightChunks | []types.HeightChunk | Height Chunk List |
Get account block height list to upload.
| Key | Type | Description |
|---|
| account | base32 | Account |
| heightChunks | []types.HeightChunk | Height Chunk List |
| Key | Type | Description |
|---|
| heightChunks | []types.HeightChunk | Height Chunk List |
| validTop | int | Valid Top |
| validBottom | int | Valid Bottom |
Calculate spent amount by Express.
| Key | Type | Description |
|---|
| account | base32 | Account |
| sender | base32 | Send Account |
| sentHeight | int | sent Height |
| Key | Type | Description |
|---|
| amount | string | Amount |
Change Validator Key (VKey).
| Key | Type | Description |
|---|
| account | base32 | Account |
| sign | base64 | Signature |
| signedHeight | int | signedHeight from the 1st response |
| Key | Type | Description |
|---|
| hash | base64 | Tx Hash |
| tx | object | Created Tx |
| success | bool | Success |
| signedHeight | int | Signed tx height |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
Check if the address exists.
| Key | Type | Description |
|---|
| keyAddr | base32 | Key address |
| Key | Type | Description |
|---|
| addr | base32 | Address |
| exist | bool | Existence |
Send Client Message.
| Key | Type | Description |
|---|
| msg | string | Message |
| Key | Type | Description |
|---|
| - | any | Result |
Close Account.
| Key | Type | Description |
|---|
| from | base32 | From Account |
| to | base32 | To Account |
| sign | base64 | Signature |
| signedHeight | int | signedHeight from the 1st response |
| Key | Type | Description |
|---|
| hash | base64 | Tx Hash |
| tx | object | Created Tx |
| success | bool | Success |
| signedHeight | int | Signed tx height |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
Create Asset Object.
| Key | Type | Description |
|---|
| account | base32 | Account |
| assetType | string | Asset Type |
| amount | string | Amount |
| operator | string | Operator |
| metaData | string | Metadata |
| sign | base64 | Signature |
| signedHeight | int | signedHeight from the 1st response |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
| Key | Type | Description |
|---|
| hash | base64 | Tx Hash |
| tx | object | Created Tx |
| success | bool | Success |
| signedHeight | int | Signed tx height |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
Create VME(Virtual Machine Environment).
| Key | Type | Description |
|---|
| account | base32 | Account |
| sysId | base32 | System ID |
| sysType | string | System Type |
| lockAmount | string | Lock Amount |
| sign | base64 | Signature |
| signedHeight | int | signedHeight from the 1st response |
| Key | Type | Description |
|---|
| hash | base64 | Tx Hash |
| tx | object | Created Tx |
| success | bool | Success |
| signedHeight | int | Signed tx height |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
Download Account Transactions.
| Key | Type | Description |
|---|
| account | base32 | Account |
| heightChunks | []types.HeightChunk | Height Chunk List |
| heights | []int | Heights |
| Key | Type | Description |
|---|
| heights | []int | Height List |
| txs | []string | Tx List |
Find Duplicate Subscriber.
| Key | Type | Description |
|---|
| published | string | Publisher |
| Key | Type | Description |
|---|
| exist | bool | Existence |
Get Account Asset List.
| Key | Type | Description |
|---|
| account | base32 | Account |
| maxCount | int | Max Count |
| Key | Type | Description |
|---|
| assetList | []types.AccountAsset | Asset List |
types.AccountAsset
| Key | Type | Description |
|---|
| assetId | string | Asset ID |
| amount | string | Amount |
| objects | []types.AssetObject | Asset Object List |
| unactAmount | string | Inactive Amount |
| unactObjects | []types.AssetObject | Inactive Asset Object List |
Get Account Asset Object.
| Key | Type | Description |
|---|
| account | base32 | Account |
| assetId | []string | Asset ID List |
| Key | Type | Description |
|---|
| objects | []types.AssetObject | Object List |
| unactObjects | []types.AssetObject | Unavailable Object List |
types.AssetObject
| Key | Type | Description |
|---|
| id | string | Asset Object ID |
| value | string | Value |
| owner | base32 | Owner |
| operator | base32 | Operator |
| rentStart | int | Rental Start Height |
| rentEnd | int | Rental End Height |
Get Concise Node Status.
[None]
| Key | Type | Description |
|---|
| nodeId | base32 | Node ID |
| host | base32 | Host |
| reliable | bool | Is Reliable |
| round | int | Round |
| epoch | int | Epoch |
| shardId | int | Shard ID |
| networkId | int | Network ID |
| totalHeight | string | Total Height |
| intraPeerCount | int | Intra Peer Count |
| interPeerCount | int | Inter Peer Count |
| syncState | string | Sync State |
| detailState | string | Detail State |
| presyncState | string | Presync State |
| buildTime | string | Build Time |
| rsNextRound | int | RS Next Round |
| wrsNextRound | int | WRS Next Round |
Get Node Status.
[None]
| Key | Type | Description |
|---|
| nodeId | base32 | Node ID |
| baseTime | int | Base Time |
| host | base32 | Host |
| reliable | bool | Is Reliable |
| roundTime | int | Round Time |
| roundCycle | int | Round Cycle |
| prunedRound | int | Pruned Round |
| round | int | Round |
| epoch | int | Epoch |
| shardId | int | Shard ID |
| homeShardId | int | Home Shard ID |
| totalShard | int | Total Shard |
| networkId | int | Network ID |
| totalHeight | string | Total Height |
| intraPeerCount | int | Intra Peer Count |
| interPeerCount | int | Inter Peer Count |
| syncState | string | Sync State |
| detailState | string | Detail State |
| presyncState | string | Presync State |
| buildTime | string | Build Time |
| avgTxTime | string | Average Tx Time |
| rsNextRound | int | RS Next Round |
| rsf | int | RSF |
| vmInfo | string | VM Info |
| wrsNextRound | int | WRS Next Round |
| wrsHeight | int | WRS Height |
Get Owner Balance.
[None]
| Key | Type | Description |
|---|
| - | []types.OwnerBalance | Owner Balance List |
types.OwnerBalance
| Key | Type | Description |
|---|
| account | string | Account |
| balance | string | Balance |
Get Round State.
| Key | Type | Description |
|---|
| round | int | Round |
| Key | Type | Description |
|---|
| nextRound | int | Next Round |
| prevNextRound | int | Prev Next Round |
| hash | string | Hash |
| totalHeight | int | Total Height |
| proposer | base32 | Proposer |
| validatorsWeight | int | Validators Weight |
| validators | []types.VoteInfoRPC | Validators List |
| incentiveExist | bool | Incentive Existence |
| totalIncentive | string | Total Incentive |
| startRound | int | Start Round |
| endRound | int | End Round |
| newEpoch | int | New Epoch |
| newEpochRound | int | New Epoch Round |
types.VoteInfoRPC
| Key | Type | Description |
|---|
| addr | base32 | Validator Address |
| weight | uint16 | Weight |
| sign | string | Signature |
Get Round State List.
| Key | Type | Description |
|---|
| round | int | Round |
| count | int | Count |
| Key | Type | Description |
|---|
| - | []types.RoundStateAbstract | Round State List |
types.RoundStateAbstract
| Key | Type | Description |
|---|
| round | int | Round |
| hash | string | Hash |
| totalHeight | int | Total Height |
Get Account Shard Info.
| Key | Type | Description |
|---|
| account | base32 | Account |
| Key | Type | Description |
|---|
| shard | int | Shard |
| acceptable | bool | Acceptable |
Make Tx Proof.
| Key | Type | Description |
|---|
| account | base32 | Account |
| txs | []string | Tx List |
| count | int | Count |
| Key | Type | Description |
|---|
| account | base32 | Account |
| txs | []string | Tx string List |
| proof | string | Merkle Proof of requested Txs |
| checkRoundP1 | int | Round + 1 where proof created |
Request Data Trade.
| Key | Type | Description |
|---|
| requester | base32 | Requester |
| dataType | int | Data Type |
| reqHash | string | Request Hash |
| reward | string | Reward |
| key | string | Key |
| trader | base32 | Trader |
| sign | base64 | Signature |
| signedHeight | int | signedHeight from the 1st response |
| Key | Type | Description |
|---|
| hash | base64 | Tx Hash |
| tx | object | Created Tx |
| success | bool | Success |
| signedHeight | int | Signed tx height |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
| key | string | Key |
| target | string | Target |
Set Host.
| Key | Type | Description |
|---|
| account | base32 | Account |
| otp | string | OTP |
| Key | Type | Description |
|---|
| - | bool | Success status |
Subscription.
| Key | Type | Description |
|---|
| published | string | Publisher |
| add | bool | Add status |
[None]
Transfer Asset Object.
| Key | Type | Description |
|---|
| from | base32 | Sender Account |
| to | base32 | Receiver Account |
| assetId | string | Asset ID |
| amount | string | Amount |
| sign | base64 | Signature |
| signedHeight | int | signedHeight from the 1st response |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
| Key | Type | Description |
|---|
| hash | base64 | Tx Hash |
| tx | object | Created Tx |
| success | bool | Success |
| signedHeight | int | Signed tx height |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
Transfer Coin Express.
| Key | Type | Description |
|---|
| from | base32 | Sender Account |
| to | base32 | Receiver Account |
| amount | string | Amount |
| sign | base64 | Signature |
| signedHeight | int | signedHeight from the 1st response |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
| source | types.Source | Fund Source |
types.Source
| Key | Type | Description |
|---|
| owner | string | Owner |
| height | int | Height |
| Key | Type | Description |
|---|
| hash | base64 | Tx Hash |
| tx | object | Created Tx |
| success | bool | Success |
| signedHeight | int | Signed tx height |
| feeType | int | Fee Type (AUTO:0, GRANT_ONLY:1) |
Upload Account Transactions.
| Key | Type | Description |
|---|
| account | base32 | Account |
| txs | []string | Tx List |
| Key | Type | Description |
|---|
| - | []int | Result |