PUT Sign All Transaction
Sign All Transaction Example
typescript
import { Web3Kit, ChainType } from "@web3jskit/dapp";
interface ISignTransactionRes {
signature: string;
}
function signTransaction(transactions: string[]) {
const web3Kit = new Web3Kit();
const serRes = (await web3Kit.request({
chainType: ChainType.PUT,
methodName: "signAllTransactions",
params: {
transactions,
},
})) as ISignTransactionRes;
}
Request Parameters
typescript
{
chainType: ChainType.PUT,
methodName: "signAllTransactions",
params: {
transactions, // Transaction contents, in base58 format
},
}
Return Value
typescript
{
transaction: '', // Signed transaction, in base58 format
}