Signup
Search
K

Sending SLPs

experimental (not available in production yet)

Introduction

Signup supports sending all types of SLP tokens including token type 1 (fungible), NFT children and NFT groups. You don't need to know the type of token to request sending it, we only have one function which will takes care of all the work in the background to ensure a safe transaction.

Performing the transaction

In this example, we want to send 1000 of a specific SLP token to an arbitrary address. You need to know the tokenId or choose it from user's balances.
// a payment of tokenId to a specific SLP address
// you need to pick the tokenId from one of the tokens
// in user's balance
signup.sendSlp(
tokenId,
1000,
"simpleledger:qqfnul5ttmqsr32kwv3memcfhfuzmws44qaxk6rsyq"
).then(({ txResult }) => {
// awaitng user's approval
console.log('Done!, transaction id is =>', txResult.txId);
});