Table of Contents

Class Account

Namespace
Aptos
Assembly
Aptos.dll

Abstract class representing a signer account.

public abstract class Account
Inheritance
Account
Derived
Inherited Members

Properties

Address

Gets the address of the account.

public abstract AccountAddress Address { get; }

Property Value

AccountAddress

SigningScheme

Gets the signing scheme used by the account.

public abstract SigningScheme SigningScheme { get; }

Property Value

SigningScheme

VerifyingKey

Gets the public key of the account.

public abstract IVerifyingKey VerifyingKey { get; }

Property Value

IVerifyingKey

Methods

Generate()

Generates a new Ed25519 account.

public static Ed25519Account Generate()

Returns

Ed25519Account

A new instance of Ed25519Account.

Sign(AnyRawTransaction)

Signs a transaction using the account's private key.

public virtual Signature Sign(AnyRawTransaction transaction)

Parameters

transaction AnyRawTransaction

The transaction to sign.

Returns

Signature

The signed transaction.

Sign(byte[])

Signs a message with the using the signer.

public abstract Signature Sign(byte[] message)

Parameters

message byte[]

The message to sign as a byte array.

Returns

Signature

The signed message.

Sign(string)

Signs a message with the using the signer.

public Signature Sign(string message)

Parameters

message string

The message to sign as a byte array.

Returns

Signature

The signed message.

SignWithAuthenticator(AnyRawTransaction)

Signs a transaction and returns an authenticator for the account.

public virtual AccountAuthenticator SignWithAuthenticator(AnyRawTransaction transaction)

Parameters

transaction AnyRawTransaction

The transaction to sign.

Returns

AccountAuthenticator

The authenticator containing the signature.

SignWithAuthenticator(byte[])

Signs a message and returns an authenticator for the account.

public abstract AccountAuthenticator SignWithAuthenticator(byte[] message)

Parameters

message byte[]

The message to sign as a byte array.

Returns

AccountAuthenticator

The authenticator containing the signature.

SignWithAuthenticator(string)

Signs a message and returns an authenticator for the account.

public AccountAuthenticator SignWithAuthenticator(string message)

Parameters

message string

The message to sign as a byte array.

Returns

AccountAuthenticator

The authenticator containing the signature.