Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
relevant tag icon
FEVM Datacap API
copy icon
Zondax
• version 1.0.0
FEVM

FEVM Datacap API

This library is a proxy to the singleton DataCap actor (address: f0X). Calling one of its methods will result in a cross-actor call being performed.

*Visit desktop site to download or deploy

Version

1.0.0

Creator

Zondax

Last Publish

3/17/2023
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
name() :
This function calls a method on an Actor contract to retrieve its name and returns it as a string. (autogenerated documentation)
symbol() :
This function calls a smart contract method to retrieve a symbol and returns it as a string. (autogenerated documentation)
totalSupply() :
This function retrieves the total supply of a token by calling a smart contract and deserializing the result. (autogenerated documentation)
balance() :
This function retrieves the balance of a Filecoin address by calling a smart contract and deserializing the result. (autogenerated documentation)
allowance() :
This function retrieves the allowance for a given data cap type by calling a smart contract and returning the result as a BigInt. (autogenerated documentation)
transfer() :
This function transfers data capacity between actors by serializing and deserializing parameters using CBOR codec. (autogenerated documentation)
transferFrom() :
This function transfers data cap tokens between two accounts by calling an external actor and deserializing the result. (autogenerated documentation)
increaseAllowance() :
This function increases the allowance of a data cap actor by calling its method and returning the result as a BigInt. (autogenerated documentation)
decreaseAllowance() :
This function decreases the allowance of a data cap actor and returns the updated allowance. It works by calling the actor's decrease allowance method. (autogenerated documentation)
revokeAllowance() :
This function revokes an operator's allowance and returns the remaining allowance. It works by calling a method on the DataCap actor. (autogenerated documentation)
burn() :
This function burns a specified amount of tokens by calling a method on another contract and returns the updated balance. (autogenerated documentation)
burnFrom() :
This function burns data cap tokens from a user's account by calling a smart contract method and returning the result. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconDownload Source
copy iconnpx cookbookdev i FEVM-Datacap-API
copy icon

Last Publish

3/17/2023

Version

1.0.0

Creator

Zondax

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.