0

i have problem when create transact use wax.js, i get the eos signatures but do not know how to add this signatures

transaction declares authority “something”, but does not have signatures for it

const wax = new waxjs.WaxJS({
      rpcEndpoint: "https://wax.greymass.com",
      userAccount: user,
      pubKeys: data.pubKeys,
      tryAutoLogin: false,
    });

const result = await wax.api.transact(
      {
        actions: [
          {
            account: "eosio.token",
            name: "transfer",
            authorization: [
              {
                actor: payer_name,
                permission: "active",
              },
              {
                actor: user,
                permission: "active",
              },
            ],
            data: {
              from: fromUser,
              to: toUser,
              quantity: "0.00010000 WAX",
              memo: "this is a memo",
            },
          },
        ],
      },
      {
        blocksBehind: 3,
        expireSeconds: 1200,
      }
    );

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.