Table of Contents | ||
---|---|---|
|
...
v1/chain/get_nft_image example
POST:
'{“url”:”https://fio.eosrio.io/v1/chain/get_nft_image”}'
RESPONSE:
'{“image”:”https://imgur.com/exampleimage.png”}'
IPFS Url formatting:
'{“image”:”https://{gatewayURL}/ipfs/{content ID}/{optional path to resource}”}'
OLD: Moved specification info to fio.erc20 - wFIO Contract Specification
Wrap/Unwrap
wrap
Create wFIO on Ethereum chain
...
Parameter | Required | Format | Definition |
---|---|---|---|
account | Yes | String | Public address on ETH blockchain where wrapped FIO should be delivered. |
amount | Yes | Positive Int | Amount of wFIO (in SUFs) to unwrap. TBD (Paweł): So if I wrap 1,000,000,001 SUFs, how many WFIO will I get? |
Example
Code Block |
---|
{ "amount": 100000000000, "account": "0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B" } |
...
Parameter | Required | Format | Definition |
---|---|---|---|
amount | Yes | Positive Int | Amount of wFIO (in SUFs) to unwrap. |
fio_address (hash) | Yes | String | Hash of the FIO Address where FIO Tokens should be delivered. |
max_oracle_fee? | Yes | Positive Int | TBD (Paweł): Oracle fees only charged on Wrap? |
max_fee? | Yes | Positive Int | Maximum amount of SUFs the user is willing to pay for fee. Should be preceded by /get_fee for correct value. |
tpid? | Yes | FIO Address | FIO Address of the entity which generates this transaction. TPID rewards will be paid to this address. Set to empty if not known. |
...