Safe 执行流程-含代码
2025-08-29 13:37:24 0 举报
Safe 执行流程-含代码
作者其他创作
大纲/内容
// 数据结构定义export type SendTransactionProps = { transactions: TransactionBase[]} & TransactionOptionsexport interface TransactionBase { to: string; value: string; data: string;}export interface TransactionOptions { from?: string; gasLimit?: number | string | bigint; gasPrice?: number | string; maxFeePerGas?: number | string; maxPriorityFeePerGas?: number | string; nonce?: number;}
② 构建 Safe 交易对象(SafeTransaction)
protocolKit.isSafeDeployed()
部署Safe并提案交易
Y
① 构建基础交易对象
Safe 是否部署
是否需要多签
提案交易
protocolKit.getThreshold() 1
N
部署Safe并执行交易
执行交易
0 条评论
下一页