Transactions
Make a transaction, of any kind or type.
Transactions are a significant aspect of every wallet interaction. By default, we try to transact every transaction bundle in a p2p fashion to reduce computational load and reduce latency. Classical address transactions will be long term supported for legacy reasons.
You can also send transactions without the URI function, by simply composing an array of receiver, amount and type. The note is optional and is send with the p2p bundle as message.
Since the input is an Array, you can indicate many receivers at the same time.
The receiver indicated can be a paymail alias or classical address
BSV
Token
NFT
Multi Ouput
var parameters = {
serviceId: 'optional',
walletID: 'optional',
data: {
dataArray: [
{
to: "17n2JVhrCf1oYSMkZtZNjcf1deteUEKQsH",
amount: 0.0001,
notes: "pizza payment"
}
]
},
}
const response = await relysia.transaction.v1.send(parameters);
var parameters = {
serviceId: 'optional',
walletID: 'optional',
data: {
dataArray: [
{
to: "17n2JVhrCf1oYSMkZtZNjcf1deteUEKQsH",
tokenId: "1SJDKAS34DKSDKD1OD-SBD",
amount: 2
}
]
},
}
const response = await relysia.transaction.v1.send(parameters);
var parameters = {
serviceId: 'optional',
walletID: 'optional',
data: {
dataArray: [
{
to: "17n2JVhrCf1oYSMkZtZNjcf1deteUEKQsH",
tokenId: "1SJDKAS34DKSDKD1OD-SBD",
amount: 1,
sn: 1
}
]
},
}
const response = await relysia.transaction.v1.send(parameters);
var parameters = {
serviceId: 'optional',
walletID: 'optional',
data: {
dataArray: [
{
to: "17n2JVhrCf1oYSMkZtZNjcf1deteUEKQsH",
amount: 0.00001,
notes: "pizza payment"
},
{
to: "17n2JVhrCf1oYSMkZtZNjcf1deteUEKQsH",
amount: 0.00001,
notes: "grocery"
},
{
to: "17n2JVhrCf1oYSMkZtZNjcf1deteUEKQsH",
tokenId: "1SJDKAS34DKSDKD1OD-SBD",
amount: 1
}
]
},
}
const response = await relysia.transaction.v1.send(parameters);
post
https://api.relysia.com
/v1/send
Transfer coins to an address.
Other than just BSV, you can indicate in the type input whether you want to transfer a BSV or a arbitrary token (such as a NFT or festival ticket token). The fee manager is handling all transaction fees for the user (up to infrastructure provider determined limits) to improve the general onboarding and user experience.
Last modified 6mo ago