Signup
Search…
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.
1
// a payment of tokenId to a specific SLP address
2
// you need to pick the tokenId from one of the tokens
3
// in user's balance
4
signup.sendSlp(
5
tokenId,
6
1000,
7
"simpleledger:qqfnul5ttmqsr32kwv3memcfhfuzmws44qaxk6rsyq"
8
).then(({ txResult }) => {
9
// awaitng user's approval
10
console.log('Done!, transaction id is =>', txResult.txId);
11
});
Copied!

Last modified 9mo ago