Skip to content

Instantly share code, notes, and snippets.

@HubertG97
Created February 25, 2021 15:48
Show Gist options
  • Save HubertG97/7019029a591d82bf53d93d346a0a8c70 to your computer and use it in GitHub Desktop.
Save HubertG97/7019029a591d82bf53d93d346a0a8c70 to your computer and use it in GitHub Desktop.
Setting up a NFT on the XRPL
//Set a default flag
{
"TransactionType": "AccountSet",
"Account": "rawSnhbdjsxrRqMupArYZAiSwVNyWgtM4M",
"Fee": "12",
"SetFlag" : "8"
}
//Setting a trustline between the minter and the hot wallet
{
"TransactionType": "TrustSet",
"Account": "r3uZPZJsEjy4CV59EQZZcLzjAwVPc2fLZR",
"Fee": "12",
"Flags" : "131072",
"LimitAmount": {
"currency": "64656E6163687477616368740000000000000000",
"issuer": "rawSnhbdjsxrRqMupArYZAiSwVNyWgtM4M",
"value": "1000000000000000e-96"
}
}
//Sending the NFT from the minter to the hot wallet
{
"TransactionType": "Payment",
"Account": "rawSnhbdjsxrRqMupArYZAiSwVNyWgtM4M",
"Fee": "12",
"Destination" : "r3uZPZJsEjy4CV59EQZZcLzjAwVPc2fLZR",
"Amount": {
"currency": "64656E6163687477616368740000000000000000",
"issuer": "rawSnhbdjsxrRqMupArYZAiSwVNyWgtM4M",
"value": "0.000000000000000000000000000000000000000000000000000000000000000000000000000000001"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment