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.

Send Transaction

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
1
var parameters = {
2
serviceId: 'optional',
3
walletID: 'optional',
4
data: {
5
dataArray: [
6
{
7
to: "17n2JVhrCf1oYSMkZtZNjcf1deteUEKQsH",
8
amount: 0.0001,
9
notes: "pizza payment"
10
}
11
]
12
},
13
}
14
const response = await relysia.send(parameters);
Copied!
1
var parameters = {
2
serviceId: 'optional',
3
walletID: 'optional',
4
data: {
5
dataArray: [
6
{
7
to: "17n2JVhrCf1oYSMkZtZNjcf1deteUEKQsH",
8
tokenId: "1SJDKAS34DKSDKD1OD-SBD",
9
amount: 2
10
}
11
]
12
},
13
}
14
const response = await relysia.send(parameters);
Copied!
1
var parameters = {
2
serviceId: 'optional',
3
walletID: 'optional',
4
data: {
5
dataArray: [
6
{
7
to: "17n2JVhrCf1oYSMkZtZNjcf1deteUEKQsH",
8
tokenId: "1SJDKAS34DKSDKD1OD-SBD",
9
amount: 1,
10
sn: 1
11
}
12
]
13
},
14
}
15
const response = await relysia.send(parameters);
Copied!
1
var parameters = {
2
serviceId: 'optional',
3
walletID: 'optional',
4
data: {
5
dataArray: [
6
{
7
to: "17n2JVhrCf1oYSMkZtZNjcf1deteUEKQsH",
8
amount: 0.00001,
9
notes: "pizza payment"
10
},
11
{
12
to: "17n2JVhrCf1oYSMkZtZNjcf1deteUEKQsH",
13
amount: 0.00001,
14
notes: "grocery"
15
},
16
{
17
to: "17n2JVhrCf1oYSMkZtZNjcf1deteUEKQsH",
18
tokenId: "1SJDKAS34DKSDKD1OD-SBD",
19
amount: 1
20
}
21
]
22
},
23
}
24
const response = await relysia.send(parameters);
Copied!
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.
Copy link
Contents