React:Dapp开发

AptosWallet:Dapp-调用合约

2022-10-25  本文已影响0人  精神病患者link常
官网文档地址:https://aptos.dev/


文档地址:https://fullnode.devnet.aptoslabs.com/v1/spec#/operations/get_account_modules
eg: fetch(https://fullnode.devnet.aptoslabs.com/v1/accounts/address/resource/0x1::...)
文档地址:https://aptos.dev/tutorials/your-first-dapp/#use-the-windowaptos-api-to-submit-the-set_message-transaction

const payload = {
  function: '0x1.....',
  type_arguments: [
    ...
  ],
  arguments: [
    ...
  ],
  type: "entry_function_payload",
};
window.aptos.signAndSubmitTransaction(payload).then((response:any)=>{
  console.log('res111111111==',response);
}).catch((err:any)=>{
})
上一篇 下一篇

猜你喜欢

热点阅读