LogoLogo
1.4.x
1.4.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
      • Resolving CSPR.name
    • 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.name resolution
      • Get CSPR.name resolution
    • 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
  • Properties
  • Optional properties
  • Relations
  • Endpoints
  • Relation endpoints
Export as PDF
  1. REST API

Fungible token action

PreviousGet deploy execution typesNextGet fungible token actions

Last updated 3 months ago

The FTTokenAction entity describes standard actions that can be performed on fungible tokens, such as mint, transfer, or burn. CSPR.cloud supports fungible tokens compatible with the Casper Network standard.

Properties

The FTTokenAction entity has the following properties:

Property
Type
Description

deploy_hash

string(64)

Deploy hash in which the token action occurred. First part of token action identifier, represented as a hexadecimal string

block_height

uint64

Height of the block in which the token action occurred.

transform_idx

int

ID of the transform in the deploy execution result containing performed token action in deploy execution. Second part of token action identifier

contract_package_hash

string(64)

Contract package hash of fungible token contract, represented as a hexadecimal string

from_hash

string(64)

Action source account or contract hash, represented as a hexadecimal string

from_type

uint8

Action source hash type: 0 for account, 1 for contract

to_hash

string(64)

Action target account or contract hash, represented as a hexadecimal string

to_type

uint8

Action target hash type: 0 for account, 1 for contract

ft_action_type_id

uint8

amount

string

Tokens amount value used during the token action

timestamp

uint16

The timestamp of performed token action

Example

{
  "amount": "37357",
  "contract_package_hash": "883238e99639bc7f5f7858398d0df94138c8ad89f76bdef7fac5fdd3df7f033a",
  "deploy_hash": "0005f1e53afa9799a66a389a90caab84ab3cbd000ab7741e55e09f80c75002b6",
  "block_height": 2404571,
  "from_hash": "f41cc7553d271e7ac70899ead4d3584c72ca2e119f2a86fbb4641ca95f3ba9e7",
  "from_type": 0,
  "ft_action_type_id": 2,
  "timestamp": "2023-02-09T19:16:21Z",
  "to_hash": "a5a9a804a383f3b0e131c85d471542af2c6d4ec57bab39182ba93dd7bd86f46c",
  "to_type": 1,
  "transform_idx": 67
}

Optional properties

Depending on the endpoint some of the following optional properties may be included in the FTTokenAction entity:

Property
Type
Description

contract_package

Fungible contract package

deploy

Deploy in which the token action occurred

from_public_key

string(68)

Action source public key if it's an account

to_public_key

string(68)

Action target public key if it's an account

to_account_info

Action source account info if it's an account

from_account_info

Action target account info if it's an account

to_centralized_account_info

Action target centralized account info if it's an account

from_centralized_account_info

Action target centralized account info if it's an account

from_cspr_name

string

Primary CSPR.name of the source account, if it is an account

to_cspr_name

string

Primary CSPR.name of the destination account, if it is an account

Relations

Entity
Mapping property
Description

contract_package_hash

Fungible tokens actions belong to a contract package

from_hash, to_hash

Fungible token actions could have accounts as the action source and target

Endpoints

The FTTokenAction entity has the following endpoints:

Relation endpoints

The FTTokenAction entity has the following relation endpoints:

type identifier

CEP-18
Get fungible token actions
Get contract package fungible token actions
Get account fungible token actions
Get fungible token action types
Fungible token action type
ContractPackage
Deploy
AccountInfo
AccountInfo
CentralizedAccountInfo
CentralizedAccountInfo
Contract package
Account