- toJSON(payload: Payload.Transfer): ReturnType<typeof transferToJSON>
-
Returns ReturnType<typeof transferToJSON>
- toJSON(payload: TransferWithMemo): ReturnType<typeof transferWithMemoToJSON>
-
Returns ReturnType<typeof transferWithMemoToJSON>
- toJSON(payload: DeployModule): ReturnType<typeof deployModuleToJSON>
-
Returns ReturnType<typeof deployModuleToJSON>
- toJSON(payload: InitContract): ReturnType<typeof initContractToJSON>
-
Returns ReturnType<typeof initContractToJSON>
- toJSON(payload: UpdateContract): ReturnType<typeof updateContractToJSON>
-
Returns ReturnType<typeof updateContractToJSON>
- toJSON(payload: UpdateCredentials): ReturnType<typeof updateCredentialsToJSON>
-
Returns ReturnType<typeof updateCredentialsToJSON>
- toJSON(payload: RegisterData): ReturnType<typeof registerDataToJSON>
-
Returns ReturnType<typeof registerDataToJSON>
- toJSON(payload: ConfigureDelegation): ReturnType<typeof configureDelegationToJSON>
-
Returns ReturnType<typeof configureDelegationToJSON>
- toJSON(payload: ConfigureValidator): ReturnType<typeof configureValidatorToJSON>
-
Returns ReturnType<typeof configureValidatorToJSON>
- toJSON(payload: TokenUpdate): ReturnType<typeof tokenUpdateToJSON>
-
Returns ReturnType<typeof tokenUpdateToJSON>
- toJSON(payload: Payload): Payload.JSON
-
Converts a transaction payload to its intermediary JSON representation.
Please note that
bigints are used internally, and representing these must be handled by the caller e.g. by using a tool such asjson-bigint.Returns
the JSON representation
Throws
if the transaction type is not supported