NearApi.Transaction (near_api v0.1.6)

Create NEAR transactions here

Link to this section Summary

Link to this section Types

Specs

t() :: %NearApi.Transaction{
  actions: [NearApi.Action.t()],
  block_hash: binary(),
  nonce: integer(),
  public_key: NearApi.PublicKey.t(),
  receiver_id: String.t(),
  signer_id: String.t()
}

Link to this section Functions

Link to this function

borsh_encode(obj)

Specs

borsh_encode(obj :: keyword()) :: bitstring()

Encodes objects according to the schema into the bytestring

Link to this function

payload(tx, key_pair)

Link to this function

sign_and_serialise(tx, key_pair)