2025-06-22 00:21:09 +03:00

29 lines
1.3 KiB
TypeScript

import { PublicKey } from '@near-js/crypto';
import { Action } from './actions';
export declare class DelegateAction {
senderId: string;
receiverId: string;
actions: Array<Action>;
nonce: bigint;
maxBlockHeight: bigint;
publicKey: PublicKey;
constructor({ senderId, receiverId, actions, nonce, maxBlockHeight, publicKey }: {
senderId: string;
receiverId: string;
actions: Action[];
nonce: bigint;
maxBlockHeight: bigint;
publicKey: PublicKey;
});
}
/**
* Compose a delegate action for inclusion with a meta transaction signed on the sender's behalf
* @param actions The set of actions to be included in the meta transaction
* @param maxBlockHeight The maximum block height for which this action can be executed as part of a transaction
* @param nonce Current nonce on the access key used to sign the delegate action
* @param publicKey Public key for the access key used to sign the delegate action
* @param receiverId Account ID for the intended receiver of the meta transaction
* @param senderId Account ID for the intended signer of the delegate action
*/
export declare function buildDelegateAction({ actions, maxBlockHeight, nonce, publicKey, receiverId, senderId, }: DelegateAction): DelegateAction;
//# sourceMappingURL=delegate.d.ts.map