- AutoReceiver
- Plasma
- Ledger
- Transfer
- Wallet
- Utilities
- Users
Receive an account block by block hash
POST
/api/transfer/{account}/receive
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
Example:
z1qqjnwjjpnue8xmmpanz6csze6tcmtzzdtfsww7 or 0
Body Params application/json
blockHash
string
required
Example:
126e53dd8a5514d67e0203e580c0d9950c9b0255618d53e87e42bdbd18246e9f
Example
{
"blockHash": "126e53dd8a5514d67e0203e580c0d9950c9b0255618d53e87e42bdbd18246e9f"
}
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/receive' \
--header 'Content-Type: application/json' \
--data-raw '{
"blockHash": "126e53dd8a5514d67e0203e580c0d9950c9b0255618d53e87e42bdbd18246e9f"
}'
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