LogoLogo
CSPR.build Portal
1.2.x
1.2.x
  • Documentation
    • Introduction
    • Overview
      • Authorization
      • Rate limits and quotas
      • Pagination
      • Sorting
      • Filtering
      • Optional properties
      • Errors
    • Getting started
    • Highlights
      • Including related entities
      • Including CSPR rates
      • Including account info
      • Accessing auction data
      • Accessing token data
      • Accessing NFT data
      • De-anonymizing account hashes
      • De-anonymizing account purses
      • Receiving contract-level events
    • Changelog
  • REST API
    • Reference
    • Account
      • Get account
      • Get accounts
    • Account Info
      • Get account info
      • Get account infos
    • Auction metrics
      • Get auction metrics
    • Awaiting deploy
      • Create Awaiting Deploy
      • Add Awaiting Deploy signatures
      • Get Awaiting Deploy
    • Block
      • Get block
      • Get blocks
      • Get validator blocks
    • Bidder
      • Get bidder
      • Get bidders
    • Centralized account info
      • Get centralized account info
      • Get centralized account infos
    • Contract
      • Get contract
      • Get contracts
      • Get contracts by contract package
      • Get contract types
    • Contract entry point
      • Get contract entry points
      • Get contract entry point costs
    • Contract package
      • Get contract package
      • Get contract packages
      • Get account contract packages
    • Delegation
      • Get account delegations
      • Get validator delegations
    • Delegator reward
      • Get account delegator rewards
      • Get total account delegation rewards
      • Get total validator delegators' rewards
    • Deploy
      • Get deploy
      • Get deploys
      • Get account deploys
      • Get block deploys
      • Get deploy execution types
    • Fungible token action
      • Get fungible token actions
      • Get fungible token action types
      • Get account fungible token actions
      • Get contract package fungible token actions
    • Fungible token ownership
      • Get account fungible token ownership
      • Get contract package fungible token ownership
    • Non-fungible token (NFT)
      • Get NFT
      • Get account NFTs
      • Get contract package NFTs
      • Get NFT standards
      • Get off-chain NFT metadata statuses
    • Non-fungible token (NFT) action
      • Get contract package NFT actions for a token
      • Get account NFT actions
      • Get contract package NFT actions
      • Get NFT action types
    • Non-fungible token (NFT) ownership
      • Get contract package NFT ownership
      • Get account NFT ownership
    • CSPR rate
      • Get the current currency rate
      • Get historical currency rates
      • Get currencies
    • CSPR supply
      • Get supply
    • Transfer
      • Get account transfers
      • Get deploy transfers
    • Validator
      • Get validator
      • Get validators
    • Validator performance
      • Get historical validator performance
      • Get historical average validator performance
      • Get historical average validators performance
    • Validator reward
      • Get validator rewards
      • Get validator total rewards
  • Streaming API
    • Reference
    • Account balance
    • Block
    • Contract
    • Contract package
    • Contract-level events
    • Deploy
    • Fungible token action
    • Non-fungible token (NFT)
    • Non-fungible token (NFT) action
    • Transfer
  • Casper Node API
    • Connecting with an SDK
Powered by GitBook
On this page
  • Query params
  • Sorting
  • Optional properties
  • Response
  • Example
  1. REST API
  2. Transfer

Get account transfers

Get all account sent and received transfers by the account identifier (public key or account hash).

GET /accounts/{account_identifier}/transfers

Query params

Query param
Description

from_block_height

From block height range

to_block_height

To block height range

Sorting

Property
Description

timestamp

Sort transfers by timestamp

Default sorting is timestamp DESC

Optional properties

Property
Type
Description

initiator_public_key

string(68)

Initiator public key represented as a hexademical string

to_public_key

string(68)

Transfer recipient public key represented as a hexademical string

from_purse_public_key

string(68)

Public key of the account that owns the transfer source purse represented as a hexademical string. null when the sender purse is not own by an account

to_purse_public_key

string(68)

Public key of the account that owns the transfer target purse represented as a hexademical string. null when the target purse is not own by an account

to_account_info

Transfer recipient account info

to_centralized_account_info

Transfer recipient centralized account info

from_purse_account_info

Account info of the account that owns the transfer source purse. null when the sender purse is not own by an account

from_purse_centralized_account_info

Centralized account info of the account that owns the transfer source purse. null when the sender purse is not own by an account

to_purse_account_info

Account info of the account that owns the transfer target purse. null when the target purse is not own by an account

to_purse_centralized_account_info

Centralized account info of the account that owns the transfer target purse. null when the target purse is not own by an account

initiator_public_key

string(68)

Deploy caller public key represented as a hexadecimal string

rate

float32

CSPR rate for specified currency that was relevant at the moment of deploy creation

Response

Example

curl -X 'GET' \
  'https://api.testnet.cspr.cloud/accounts/89031c78692f2836b52f06819b617cd72365a0fb49bb39f9cbb11c3311205c1d/transfers' \
  -H 'accept: application/json' \
  -H 'authorization: 55f79117-fc4d-4d60-9956-65423f39a06a'
{
  "data": [
    {
      "amount": "1000000000000",
      "deploy_hash": "0018c062828ec919ba86d4b167b9ee57d6b24d83e8548726471bcb832c0e90e4",
      "from_purse": "uref-b5de6955c1e0551d72467c72e73076beff04d3fea8c6a24d8fc5840bcb6a6039-007",
      "id": 0,
      "initiator_account_hash": "4ea2e038e30fcc11a78334eae763a4b1f73ee3797f8c4405fc0d977714291e32",
      "timestamp": "2023-04-09T08:51:56Z",
      "to_account_hash": "23ef3fe9cdefd55d51810ff60df7d385a342f925a8424b43203d38aed893a76e",
      "to_purse": "uref-fff32f8f440b84ff2ee615aee2a40f356b45d7414463bdda59c9c4254c456d16-004",
      "transform_key": "95fe1826b75027c83d31a6a0785d336a67f79a9c7d8e0e07b44f7bcb3e2218dd"
    },
    {
      "amount": "500000000000",
      "deploy_hash": "019d596a83db24788f75cb4ef0274995097526d143920a1788ca50fa75c2d971",
      "from_purse": "uref-fff32f8f440b84ff2ee615aee2a40f356b45d7414463bdda59c9c4254c456d16-007",
      "id": null,
      "initiator_account_hash": "23ef3fe9cdefd55d51810ff60df7d385a342f925a8424b43203d38aed893a76e",
      "timestamp": "2023-08-16T09:48:13Z",
      "to_account_hash": "6174cf2e6f8fed1715c9a3bace9c50bfe572eecb763b0ed3f644532616452008",
      "to_purse": "uref-5f41f9dd2d0a71b6d44b4bedbdc14e32598df6ef993d312a703d9e82bc075398-007",
      "transform_key": "b51504861952c6c30191bfe2f94d0e78e8cc8ab12b4ae5457cf0508371d49d8c"
    },
    ...
    {
      "amount": "10000000000",
      "deploy_hash": "08602742e418b97a65f98482ff0ea6485e873e3b44c588fca9578e631a424dba",
      "from_purse": "uref-fff32f8f440b84ff2ee615aee2a40f356b45d7414463bdda59c9c4254c456d16-007",
      "id": 810,
      "initiator_account_hash": "23ef3fe9cdefd55d51810ff60df7d385a342f925a8424b43203d38aed893a76e",
      "timestamp": "2023-11-23T08:18:14Z",
      "to_account_hash": null,
      "to_purse": "uref-7fc52ca619eb1e50a8df0f71ab67fd1c4ec68e3446c274302a3c1c5e78a5634f-004",
      "transform_key": "172b27d6a8d98aeb055c89f25d940b47ceece8902a65b753a660aab55e70ec1d"
    }
  ],
  "item_count": 395,
  "page_count": 40
}
PreviousTransferNextGet deploy transfers

Last updated 10 months ago

PaginatedResponse
<Transfer>
AccountInfo
CentralizedAccountInfo
AccountInfo
CentralizedAccountInfo
AccountInfo
CentralizedAccountInfo