Send Transaction
Send Transaction with Blocto wallet through Flow Client Library (FCL)
Before sending a transaction, user needs to connect to Blocto wallet first.
Step 1 - Send transaction
import * as fcl from "@blocto/fcl";
const SIMPLE_TRANSACTION = `\
transaction {
execute {
log("Hello World!!")
}
}
`;
const transactionId = await fcl.mutate({
cadence: SIMPLE_TRANSACTION,
proposer: fcl.currentUser,
payer: fcl.currentUser,
limit: 50,
});
// The transactions status and events after being sealed
const transaction = await fcl.tx(transactionId).onceSealed();Step 2 - Authorizing a transaction
Last updated
Was this helpful?